package org.yanghe.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "cloud-provider",fallback = ConsumerFallBackService.class)
public interface ConsumerService {

    @RequestMapping("/provider/hello/{name}")
    public String hello(@PathVariable("name") String name);
}
